package com.situ.blog.service;

import com.situ.blog.pojo.entity.Blog;
import com.situ.blog.pojo.query.BlogQuery;
import com.situ.blog.pojo.vo.BlogVO;
import com.situ.blog.util.PageInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IBlogService {
    //编辑
    void update(Blog blog);
    //编辑-回显
    Blog selectById(int id);
    //添加(单个元素)
    void add(Blog blog);
    //批量删除
    void deleteAll(String[] ids);
    //删除(单个元素)
    void deleteById(int id);
    //查询、分页
    PageInfo selectByPage(BlogQuery blogQuery);
    //通过按钮，更新状态
    void updateStatus(int id, int status);

    List<BlogVO> selectBlogCount(BlogQuery blogQuery);

    void exportExcel(HttpServletResponse resp);

    void importExcel(HttpServletRequest req);
}
